package com.atguigu.spzx.feign.cart;

import com.atguigu.spzx.feign.cart.fallback.CartFeignClientFallback;
import com.atguigu.spzx.model.entity.h5.CartInfo;
import com.atguigu.spzx.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @ClassName: CartFeignClient
 * @Package: com.atguigu.spzx.feign.cart
 * @Description 远程调用购物车接口
 * @Author 孤妤
 * @Date: 2023/12/20 16:36
 */
@FeignClient(value = "service-cart",fallback = CartFeignClientFallback.class)
public interface CartFeignClient {
    @GetMapping("/api/order/cart/auth/getAllCkecked")
    List<CartInfo> findCart();
    @GetMapping(value = "/api/order/cart/auth/deleteChecked")
    void deleteChecked();
}
